import java.util.ArrayList;

public class Items
{
	private int total;
	private int available;
	private String name;
	private ArrayList<Item> itemList;
	private ArrayList<CustomerAccount> customerQueue;
	private ArrayList<Boolean> notified;
	public Items()
	{
		
	}
	public Item buyItem(CustomerAccount account)
	{
		return null;
	}
	public Item borrowItem(CustomerAccount account)
	{
		return null;
	}
	public boolean returnItem(int type)
	{
		return false;
	}
	
	public Items(String names)
	{
		name=names;
		total = 0;
		itemList=new ArrayList<Item>();
		customerQueue=new ArrayList<CustomerAccount>();
		notified=new ArrayList<Boolean>();
		available=0;
	}
	public ArrayList<Boolean> getNotified()
	{
		return notified;
	}
	public void setNotified(ArrayList<Boolean> stuff)
	{
		notified=stuff;
	}
	public void addToList(CustomerAccount cus){
		customerQueue.add(cus);
	}
	
	public int getTotal() {
		return total;
	}


	public void setTotal(int total) {
		this.total = total;
	}


	public int getAvailable() {
		return available;
	}


	public void setAvailable(int available) {
		this.available = available;
	}


	public ArrayList<Item> getItemList() {
		return itemList;
	}


	public void setItemList(ArrayList<Item> itemList) {
		this.itemList = itemList;
	}


	public ArrayList<CustomerAccount> getCustomerQueue() {
		return customerQueue;
	}


	public void setCustomerQueue(ArrayList<CustomerAccount> customerQueue) {
		this.customerQueue = customerQueue;
	}

	public void setName(String name)
	{ 	
		this.name=name;
	}
	public void addItem(Item i)
	{
		itemList.add(i);
		total++;
		available++;
	}
	public void addDVD(int num)
	{
		for(int i=0; i<num; i++)
		{
			itemList.add(new DVD());
			total++;
			available++;
		}
		
	}	
	public void addBlueray(int num)
	{
		for(int i=0; i<num; i++)
		{
			itemList.add(new Blueray());
			total++;
			available++;
		}
	}
	public void itemOut()
	{
		available--;
	}
	public void itemIn()
	{
		available++;
	}
	public int getNumberAvailable()
	{
		return available;
	}
	public int getNumberNotAvailable()
	{
		return total-available;
	}
	public String getName()
	{
		return name;
	}
}
